package com.jlwl.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class LoggingAspect {
    @Before("execution(* com.service.*.*(..))")
    public void logMethodCall() {
        System.out.println("方法被调用前执行...");
    }
}